<?php include('header.php'); ?>

<!-- additional javascript hear -->
<script type="text/javascript" src="<?=base_url();?>application/scripts/ckeditor/ckeditor.js"></script>
<style type="text/css">
<!--
#wrapper #one_wide .item table tr td a img {
	color: #F2F9FF;
}
-->
</style>
</head>
<body>
<div id="wrapper">
<!-- menu -->
<?php include('menu.php'); ?>
<!-- end menu -->

<!-- navigator -->
<?php include('navigator.php'); ?>
<!-- nav end -->

 <div id="one_wide">
<?php
	if($this->session->flashdata('error'))
	{ 
		echo '<div class="error">' . $this->session->flashdata('error') . '</div>';
	}
	elseif($this->session->flashdata('success'))
	{
		echo '<div class="success">' . $this->session->flashdata('success') . '</div>';
	}
	
	echo validation_errors('<div class="error">', '</div>');
?>

<div class="item">

<h1>สร้างบล็อกใหม่</h1><hr />
<p>
<?php echo form_open('profile/blog_create');?>
<h2>หัวเรื่อง:</h2>
<input name="blog_name" type="text" size="125" >
<legend>&nbsp;</legend>
<h2>เนื้อหา:</h2>
<textarea cols="80" name="blog_content" rows="50"></textarea>
<script type="text/javascript">
//<![CDATA[

	CKEDITOR.replace( 'blog_content',
		{
			fullPage : true
		});

//]]>
</script>
<br />
<input type="submit" class="button" value="สร้าง">
</form>
</p>

</div>
</div>

<!-- footer -->
<?php include('footer.php');?>
<!-- footer end -->
</div>
</body>
</html>